﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReportMTTR.aspx.cs" Inherits="IHISCETeim.Web.AgentSys.SvrMgr.ReportMTTR" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>平均维修时间</title>
</head>
<body>
    <form id="form1" runat="server">
    <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
        <f:Panel ID="Panel1" runat="server" BodyPadding="2px"  
            ShowBorder="false" Layout="VBox" BoxConfigAlign="Stretch" BoxConfigPosition="Start"
            ShowHeader="false">
            <Items>
                <f:Form ID="Form2" runat="server"  BodyPadding="2px 1px" ShowHeader="false"
                    ShowBorder="false" LabelAlign="Right" >
                    <Rows>    
                        <f:FormRow>
                            <Items>
                                <f:TwinTriggerBox ID="ttbSearchMessage" runat="server" ShowLabel="true" Label="查找条件" EmptyText="输入品情号/机号/经销商 进行搜索">
                                </f:TwinTriggerBox>
                            </Items>
                        </f:FormRow>                    
                        <f:FormRow>
                            <Items>                               
                                <f:Panel runat="server"  ShowHeader="false" ShowBorder="false" Layout="HBox" >
                                    <Items>
                                        <f:DatePicker runat="server" ID="FromIssueDate" Label="发行日期从"></f:DatePicker>
                                        <f:DatePicker runat="server" ID="ToIssueDate" Label="到"></f:DatePicker>                                        
                                    </Items>
                                </f:Panel>
                                <f:Button ID="btnSearch" Icon="SystemSearch" runat="server" Text="确定" OnClick="btnSearch_Click"></f:Button>
                            </Items>
                        </f:FormRow>
                    </Rows>
                </f:Form>
                <f:TabStrip ID="TabStrip1"  ShowBorder="true" TabPosition="Top" EnableTabCloseMenu="false" BoxFlex="1"   ActiveTabIndex="0" runat="server">
                    <Tabs>
                        <f:Tab Title="平均时间明细" BodyPadding="0px"  Layout="Fit" runat="server">
                            <Items>
                                <f:Grid ID="Grid1" runat="server" ShowBorder="false" ShowHeader="false"
                                    EnableCheckBoxSelect="false"  EnableColumnLines="true" 
                                    DataKeyNames="QltyId" AllowSorting="true" OnSort="Grid1_Sort"  SortField="QltyId"
                                    SortDirection="DESC" AllowPaging="true" IsDatabasePaging="true" OnPageIndexChange="Grid1_PageIndexChange" OnRowDataBound="Grid1_RowDataBound" OnRowCommand="Grid1_RowCommand" OnPreRowDataBound="Grid1_PreRowDataBound" >
                                    <Toolbars>
                                        <f:Toolbar ID="Toolbar1" runat="server">
                                            <Items>                                                
                                                <f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>    
                                                 <f:Button ID="btnExecl" runat="server" Icon="PageExcel" EnablePostBack="true" Text="导出明细" OnClick="btnExecl_Click" ></f:Button>
                                            </Items>
                                        </f:Toolbar>
                                    </Toolbars>
                                    <PageItems>
                                        <f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                                        </f:ToolbarSeparator>
                                        <f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数：">
                                        </f:ToolbarText>
                                        <f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_SelectedIndexChanged"
                                            runat="server">
                                            <f:ListItem Text="10" Value="10" />
                                            <f:ListItem Text="20" Value="20" />
                                            <f:ListItem Text="50" Value="50" />
                                            <f:ListItem Text="100" Value="100" />   
                                        </f:DropDownList>
                                    </PageItems>
                                    <Columns>
                                        <f:RowNumberField Width="30px" EnablePagingNumber="true" TextAlign="Center" />        
                                        <f:BoundField DataField="ClaimState" SortField="ClaimState" Width="100px" HeaderText="品情状态" />                              
                                        <f:BoundField DataField="ClaimsNumber" SortField="ClaimsNumber" Width="100px" HeaderText="品情号" /> 
                                        <f:BoundField DataField="AgentName" SortField="AgentName" Width="100px" HeaderText="经销商" /> 
                                        <f:BoundField DataField="SerialNumber" SortField="SerialNumber" Width="100px" HeaderText="机号" />
                                        <f:BoundField DataField="WorkHour"  SortField="WorkHour" HeaderText="工作小时" NullDisplayText="0" Width="80px" />   
                                        <f:BoundField DataField="IntoDate" SortField="IntoDate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="交机日" NullDisplayText="" Width="100px" />  
                                        <f:BoundField DataField="FaultDate" SortField="FaultDate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="故障日" NullDisplayText="" Width="100px" />                                                                  
                                        <f:BoundField DataField="IssueDate" SortField="IssueDate" Width="100px" HeaderText="发行日期" DataFormatString="{0:yyyy-MM-dd}" /> 
                                        <f:BoundField DataField="SrvActReplyDate" SortField="SrvActReplyDate" Width="120px" HeaderText="服务担当回复日" DataFormatString="{0:yyyy-MM-dd}" /> 
                                        <f:BoundField DataField="SrvMangerReplyDate" SortField="SrvMangerReplyDate" Width="120px" HeaderText="服务经理审核日" DataFormatString="{0:yyyy-MM-dd}" /> 
                                        <f:BoundField DataField="NoticeSendPartsDate" SortField="NoticeSendPartsDate" Width="120px" HeaderText="通知配件发货时间" DataFormatString="{0:yyyy-MM-dd}" /> 
                                        <f:BoundField DataField="PartsRequestType" SortField="PartsRequestType" Width="180px" HeaderText="配件需求分类" /> 
                                        <f:BoundField DataField="SupperSendDate" SortField="SupperSendDate" Width="120px" HeaderText="供应商发货时间" DataFormatString="{0:yyyy-MM-dd}" /> 
                                        <f:BoundField DataField="ERPSendDate" SortField="ERPSendDate" Width="120px" HeaderText="配件ERP出库日期" DataFormatString="{0:yyyy-MM-dd}" /> 
                                        <f:BoundField DataField="RealSendDate" SortField="RealSendDate" Width="120px" HeaderText="邮寄出库日期" DataFormatString="{0:yyyy-MM-dd}" /> 
                                        <f:BoundField DataField="AgentAcceptDate" SortField="AgentAcceptDate" Width="120px" HeaderText="经销商签收日期" DataFormatString="{0:yyyy-MM-dd}" /> 
                                        <f:BoundField DataField="AgentRecoveryDate" SortField="AgentRecoveryDate" Width="120px" HeaderText="故障排除日期" DataFormatString="{0:yyyy-MM-dd}" /> 
                                                                               
                                        <f:BoundField DataField="品情报告"  SortField="品情报告" HeaderText="品情报告(小时)" NullDisplayText=""  Width="100px"/>
                                        <f:BoundField DataField="品情回答"  SortField="品情回答" HeaderText="品情回应(小时)" NullDisplayText=""  Width="100px"/>
                                        <f:BoundField DataField="配件准备"  SortField="配件准备" HeaderText="配件准备(小时)" NullDisplayText=""  Width="100px"/>
                                       <%-- <f:BoundField DataField="配件发货"  SortField="配件发货" HeaderText="配件发货(小时)" NullDisplayText=""  Width="100px"/>--%>
                                        <f:BoundField DataField="物流时间"  SortField="物流时间" HeaderText="配件物流(小时)" NullDisplayText=""  Width="100px"/>
                                        <f:BoundField DataField="处理时间"  SortField="处理时间" HeaderText="现场处理(小时)" NullDisplayText=""  Width="100px"/>
                                        <f:BoundField DataField="MTTRHR"  SortField="MTTRHR" HeaderText="排障总时间(小时)" NullDisplayText=""  Width="100px"/>    
                                        <f:BoundField DataField="FaultDescription"  SortField="FaultDescription" HeaderText="故障描述" NullDisplayText=""  Width="1000px"/>  
                                    </Columns>
                                </f:Grid>
                            </Items>
                        </f:Tab>
                        <f:Tab Title="图表" BodyPadding="5px" Layout="Fit" runat="server">
                            <Content>
                                功能开发中....
                            </Content>
                        </f:Tab>
                    </Tabs>
                 </f:TabStrip>
                
            </Items>
        </f:Panel>
    </form>
</body>
</html>
